package cn.lutu.protocol.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ArticleListVO implements Serializable {
    private Long id;
    private String nickName;
    private String userImgUrl;//头像
    private String contentImgUrl;//封面
    private String content;
    private String ip;
    private String title;
    private String brief;
    private Integer commentCount;
    private Integer collectCount;
    private Integer upCount;
    private Integer viewCount;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime createTime;
    private String checkRemarks;
}
